package com.home.school.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "t_subject")
public class TSubject {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableId(value = "num")
    private String num;

    /**
     * 课程标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 课程价格
     */
    @TableField(value = "price")
    private String price;

    @TableField(value = "pic_url")
    private String picUrl;

    /**
     * 课程时长
     */
    @TableField(value = "time")
    private Integer time;

    /**
     * 课程状态
     */
    @TableField(value = "status")
    private Integer status;

    @TableLogic
    @TableField(value = "deleted")
    private Integer deleted;

    @TableField(value = "type")
    private Integer type;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableField(exist = false)
    private String phone;
    @TableField(exist = false)
    private String address;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String teaId;

    public static final String COL_ID = "id";

    public static final String COL_TITLE = "title";

    public static final String COL_PRICE = "price";

    public static final String COL_TIME = "time";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}